We call sync() which updates our own label and icon, but does
not notify the indicator about the icon change.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2406>
this._dialog = null;
}
- _strengthChanged() {
- this._iconChanged();
- }
-
_activeApChanged() {
this._activeAccessPoint?.disconnectObject(this);
-
this._activeAccessPoint = this._device.active_access_point;
+ this._activeAccessPoint?.connectObject(
+ 'notify::strength', () => this._iconChanged(),
+ this);
- this._activeAccessPoint?.connectObject('notify::strength',
- this._strengthChanged.bind(this), this);
-
- this._sync();
+ this._iconChanged();
}
_sync() {